package com.group.eams.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.eams.pojo.dto.AssetOutStorageDetailQueryDto;
import com.group.eams.pojo.dto.AssetOutStorageQueryDto;
import com.group.eams.pojo.entity.AssetOutStorage;
import com.group.eams.pojo.vo.AssetOutStorageDetailListVo;
import com.group.eams.pojo.vo.AssetOutStorageListVo;

/**
* @author 恩哲欣
* @description 针对表【asset_out_storage(资产出库表)】的数据库操作Service
* @createDate 2024-10-29 16:09:34
*/
public interface AssetOutStorageService extends IService<AssetOutStorage> {
    /**
     * 查询资产出库列表
     * @param page 分页对象
     * @param assetOutStorageQueryDto 查询条件
     * @return Page<AssetOutStorageListVo>
     */
    Page<AssetOutStorageListVo> findAssetOutStorageList(Page<AssetOutStorage> page,
                                                        AssetOutStorageQueryDto assetOutStorageQueryDto);

    //查询出库单资产详情
    Page<AssetOutStorageDetailListVo> findAssetOutStorageDetailList(Page<AssetOutStorage> page,
                                                                    AssetOutStorageDetailQueryDto assetOutStorageDetailQueryDto);

    //根据单号查询出库单
    AssetOutStorage findByApplicationNum(String applicationNum);

    //根据单号进行删除
    int deleteByApplicationNum(String applicationNum);
}
